<template>
  <div>
    <!-- 底部导航栏 -->
    <van-tabbar v-model="active" route>
      <van-tabbar-item replace to="/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/map" icon="location-o">地图</van-tabbar-item>
      <van-tabbar-item replace to="/analyse" icon="chart-trending-o">分析</van-tabbar-item>
      <van-tabbar-item replace to="/about" icon="setting-o">关于</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const active = ref(0)
</script>

<style lang="scss" scoped></style>
